package com.cg.controller;

import com.cg.client.BaseClient;
import com.cg.dto.Dto;
import com.cg.vo.CityVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
@RestController
@RequestMapping("/v/area")
public class BaseController {

    @Resource
    private BaseClient baseClient;

    //查询市区API接口
    @PostMapping("/queryCityList")
    public Dto<List<CityVo>> queryCityList(){
        return baseClient.queryCityList();
    }
}
